package san.java.day09;

/**
 * 汽车生产工厂接口
 */

public interface BWMFactory {
    BWM productBWM();
}

class BWM3Factory implements BWMFactory {

    /**
     * 实现具体车型的生产工厂
     * @return
     */

    @Override
    public BWM productBWM() {
        System.out.println("生产宝马3系车");
        return new BWM3();
    }

    public static void main(String[] args) {
        BWM b3 = new BWM3Factory().productBWM();
    }
}
